package cn.lzy.scope.config;

import cn.lzy.scope.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;

/**
 * @Description
 * @Author lzy
 * @Date 2023/11/27 16:31
 * @Version
 **/
public class JavaConfig {

    @Bean
    @Scope("prototype")
    User user1() {
        return new User();
    }
}
